package mobileMoney;

import java.io.Serializable;

public class Profile implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	int id;
	double yearLimit; //limit per year 
	double dayLimit; // limit per day
	double transactionLimit; // limit per transaction
	boolean isMaxBalance = false; // has max balance?
	double maxBalance; // max balance

	public boolean isMaxBalance() {
		return isMaxBalance;
	}

	public void setMaxBalance(boolean isMaxBalance) {
		this.isMaxBalance = isMaxBalance;
	}

	public double getMaxBalance() {
		return maxBalance;
	}

	public void setMaxBalance(double maxBalance) {
		this.maxBalance = maxBalance;
	}

	public Profile() {
		super();
	}

	public Profile(int id, double yearLimit, double dayLimit,
			double transactionLimit, boolean isMaxBalance, double maxBalance) {
		super();
		this.id = id;
		this.yearLimit = yearLimit;
		this.dayLimit = dayLimit;
		this.transactionLimit = transactionLimit;
		this.isMaxBalance = isMaxBalance;
		this.maxBalance = maxBalance;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public double getYearLimit() {
		return yearLimit;
	}

	public void setYearLimit(double yearLimit) {
		this.yearLimit = yearLimit;
	}

	public double getDayLimit() {
		return dayLimit;
	}

	public void setDayLimit(double dayLimit) {
		this.dayLimit = dayLimit;
	}

	public double getTransactionLimit() {
		return transactionLimit;
	}

	public void setTransactionLimit(double transactionLimit) {
		this.transactionLimit = transactionLimit;
	}

	public String toString() {
		return "P" + Integer.toString(id);
	}

}
